<?php if(!defined('A')) exit;?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "/www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="/www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base target="mainifm">
<title>网站内容管理系统</title>
<?php
loadcss(array('reset','shell','dd'));
loadjs('jquery',P_JS);
loadjs(array('tab','util','jquery.dd'));
?>
<script>if(top.location !== self.location){top.location=self.location;}</script>
<script type="text/javascript">
$(document).ready(function(e) {
	
$("body select").msDropDown();
var menuNowTab;
var pt = new Tabs();
pt.classpre="bigtab_";
pt.container = "bigtab_container";
//pt.createTab("webmenu_4", "网站首页", "http://www.360.cn", false, "n");
pt.init = function(){
	menuNowTab = pt.nowTab;
};
pt.onclick = function(){
	menuNowTab = pt.nowTab;
	var url=pt.getValue();
	if(url=="")return;
	mainifm.location.href = url;
};		
pt.initTab();
pt.clickNowTab();

});
</script>
<style>
html{overflow:hidden;}
body{overflow-y:hidden;}
</style>
</head>
<body>
<table width="100%" height="100%" cellspacing="0" cellpadding="0" style="border-collapse:collapse;">
<tr>
	<td class="top_1">&nbsp;<span style="font-size:14px;font-weight:bold;color:#FFF;">网站内容管理系统</span></td>
	<td class="top_1">
		<div class="div_clear" style="height:25px;"></div>
		<table cellspacing="0" cellpadding="0" style="border-collapse:collapse;" width="100%">
            <tr>
                <td></td>
                <td><div id="bigtab_container"></div></td>
                <td class="right">欢迎：【<?php echo $user_name;?>】<a href="<?php echo $this->conf->WEB['url'];?>" target="_blank">网站首页</a> | <a href="<?php echo url('login','logout');?>" onclick="confirm('您确定要退出系统吗？');" target="_top">安全退出</a>&nbsp; &nbsp;</td>
            </tr>
        </table>
	</td>
</tr>
<tr>
	<td class="top_2">
  	&nbsp;&nbsp;
    </td>
	<td class="top_2">
        <img src="<?php echo PROJECT_IMG_URL;?>ico_home.gif" border="0" style="margin-right:5px;" /> <span id="position">菜单</span>
    </td>
</tr>
<tr>
	<td class="left_1" valign="top">
    
		<div class="div_clear" style="height:15px;"></div>
        
		<div class="headbg channel">文章管理</div>
		<ul class="channel_ul">
		<li><a href="<?php echo url('category','add','mid=11');?>">添加分类</a></li>
		<li><a href="<?php echo url('category','mylist','mid=11');?>">分类管理</a></li>
		<li><a href="<?php echo url('category','repair_me','mid=11');?>">分类数据修复</a></li>
        <li><a href="<?php echo url('category','cache_me','mid=11');?>">分类缓存生成</a></li>
        <li><a href="<?php echo url('arc','add');?>">添加文章</a></li>
        <li><a href="<?php echo url('arc','mylist');?>">文章列表</a></li>
        <li><a href="<?php echo url('arc','html');?>">静态生成</a></li>
		<li><a href="<?php echo url('arc','dump');?>">文章导入导出</a></li>
		</ul>
		
		<div class="headbg channel">文章挑错</div>
		<ul class="channel_ul" style="display:none;">
        <li><a href="<?php echo url('arc_err','mylist');?>">挑错列表</a></li>
		</ul>
        
		<div class="headbg channel">TAG管理</div>
		<ul class="channel_ul" style="display:none;">
		<li><a href="<?php echo url('attrtag','index_part');?>">TAG索引</a></li>
        <li><a href="<?php echo url('attrtag','mylist');?>">TAG属性</a></li>
		</ul>
        
		<div class="headbg channel">评论管理</div>
		<ul class="channel_ul" style="display:none;">
        <li><a href="<?php echo url('comment','mylist');?>">评论列表</a></li>
		</ul>
        
        <div class="headbg channel">留言管理</div>
		<ul class="channel_ul" style="display:none;">
        <li><a href="<?php echo url('guestbook','mylist');?>">留言列表</a></li>
		</ul>

        <div class="headbg channel">单页管理</div>
		<ul class="channel_ul" style="display:none;">
        <li><a href="<?php echo url('singlepage','add');?>">添加单页</a></li>
        <li><a href="<?php echo url('singlepage','mylist');?>">单页列表</a></li>
		</ul> 
        
        <div class="headbg channel">广告管理</div>
		<ul class="channel_ul" style="display:none;">
        <li><a href="<?php echo url('ad','add');?>">添加广告</a></li>
        <li><a href="<?php echo url('ad','mylist');?>">广告列表</a></li>
        <li><a href="<?php echo url('ad','html');?>">静态生成</a></li>
		</ul> 
         
		<div class="headbg channel">附件管理</div>
		<ul class="channel_ul" style="display:none;">
        <li><a href="<?php echo url('upload','add');?>">图片上传</a></li>
		<li><a href="<?php echo url('upload','add2');?>">附件上传</a></li>
        <li><a href="<?php echo url('upload','mylist');?>">附件列表</a></li>
		<li><a href="<?php echo url('upload','html5');?>">html5巨型文件上传</a></li>
		</ul>
		
		<div class="headbg channel">友链管理</div>
		<ul class="channel_ul" style="display:none;">
        <li><a href="<?php echo url('flink','add');?>">添加友链</a></li>
        <li><a href="<?php echo url('flink','mylist');?>">友链列表</a></li>
		</ul>
        
		<div class="headbg channel">网站管理</div>
		<ul class="channel_ul" style="display:none;">
		<li><a href="<?php echo url('setting','add');?>">添加变量</a></li>
		<li><a href="<?php echo url('setting','mylist');?>">变量列表</a></li>
        <li><a href="<?php echo url('log','member');?>">前台程序日志</a></li>
        <li><a href="<?php echo url('log','admin');?>">后台程序日志</a></li>
        <li><a href="<?php echo url('other','update_js');?>">更新common.js</a></li>
        <li><a href="<?php echo url('other','help');?>">程序助手</a></li>
        <li><a href="<?php echo url('other','example');?>">示例程序</a></li>
        <li><a href="<?php echo url('other','file_detail');?>">文件查看</a></li>
		<li><a href="<?php echo url('table_cache','front_part');?>">前台表缓存清除</a></li>
        <li><a href="<?php echo url('table_cache','admin_part');?>">后台表缓存清除</a></li>

		</ul>
        
		<div class="headbg channel">安全设置</div>
		<ul class="channel_ul" style="display:none;">
		<li><a href="<?php echo url('group','add');?>">管理员组添加</a></li>
        <li><a href="<?php echo url('group','li');?>">管理员组列表</a></li>
        <li><a href="<?php echo url('admin','add');?>">管理员账号添加</a></li>
        <li><a href="<?php echo url('admin','li');?>">管理员账号列表</a></li>
        <li><a href="<?php echo url('safe','change_name');?>">修改我的账号</a></li>
        <li><a href="<?php echo url('safe','change_pwd');?>">修改我的密码</a></li>
        <li><a href="<?php echo url('login','logout');?>" onclick="confirm('您确定要退出系统吗？');" target="_top">安全退出</a></li>
		</ul>
		
		<div class="headbg channel">前台会员管理</div>
		<ul class="channel_ul" style="display:none;">
		<li><a href="<?php echo url('front_group','add');?>">会员组添加</a></li>
        <li><a href="<?php echo url('front_group','li');?>">会员组列表</a></li>
        <li><a href="<?php echo url('front_admin','add');?>">会员账号添加</a></li>
        <li><a href="<?php echo url('front_admin','li');?>">会员账号列表</a></li>
		</ul>
        
	</td>
	<td valign="top" height="100%">
		<iframe scrolling="yes" width="100%" height="100%" frameborder="0" style="overflow-y:scroll;overflow-x:hidden;" name="mainifm" id="mainifm" src="<?php echo url('shell','main');?>"></iframe>
	</td>
</tr>
</table>

<?php
loadjs('index');
?>
<script>
$(document).ready(function(){ 
	//每十分钟请求一次防止退出
	var url='<?php echo url('index','ajax_stay');?>';
	setInterval(function(){
		$.get(url,{},function(data){
			//alert(data);	
		},'html');
	},600000);
});
</script>
</body>
</html>